package com.glacier.framework.component.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * date 2023-12-22 17:22
 *
 * @author glacier
 * @version 1.0
 */
@Data
@ToString(callSuper = false)
@EqualsAndHashCode(callSuper = false)
public class BaseException extends RuntimeException {
    private String errCode;

    public BaseException(String errMessage) {
        super(errMessage);
    }

    public BaseException(String errCode, String errMessage) {
        super(errMessage);
        this.errCode = errCode;
    }

    public BaseException(String errMessage, Throwable e) {
        super(errMessage, e);
    }

    public BaseException(String errCode, String errMessage, Throwable e) {
        super(errMessage, e);
        this.errCode = errCode;
    }
}
